
<?php
	require_once("connect_sql.php");
	
	$sql = "select * from function order by id";
	$result = mysql_query($sql);
	if(!$result) echo mysql_error();
	while($row = mysql_fetch_array($result)) {
		printf("<div class=\"checkboxItem\"><input type=\"checkbox\" name=\"function\" value=\"%d\"/><label>%s</label></div>", $row['id'], $row['name']);
	}
	//<div class="checkboxItem"><input type="checkbox" name="function" value="1"/><label>蓝牙</label></div>
?>